<!--!
This file is a part of MediaDrop (https://www.mediadrop.video),
Copyright 2009-2018 MediaDrop contributors
For the exact contribution history, see the git revision log.
The source code contained in this file is licensed under the GPLv3 or
(at your option) any later version.
See LICENSE.txt in the main project directory, for more information.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:i18n="http://genshi.edgewall.org/i18n"
      xmlns:xi="http://www.w3.org/2001/XInclude"
      i18n:domain="mediadrop"
      py:strip="">

<body py:match="body" py:attrs="select('@*')">
	${Markup(settings['appearance_custom_header_html'])}

	<py:choose test="bool(settings['appearance_display_logo'] and settings['appearance_logo'])">
		<h1 py:when="True" id="mcore-logo">
			<a href="${h.url_for('/')}">${settings['general_site_name']}</a>
		</h1>
		<div py:otherwise="" id="mcore-site-title">
		</div>
	</py:choose>

	<div py:replace="select('*|text()|comment()')">Content is injected here</div>

	<div py:if="settings['appearance_display_mediadrop_footer']" id="mcore-foot" class="mediadrop-content clear">
		<div id="mcore-feeds" class="f-lft">
			<h5>Feeds:</h5>
			<ul>
				<li py:for="href, title in response.feed_links"><a href="${href}" class="mcore-foot-link underline-hover">${title}</a></li>
			</ul>
		</div>
		<div py:if="settings['appearance_display_mediadrop_credits']" id="mcore-credits" class="f-rgt">
			<a href="http://mediadrop.video" class="mcore-foot-link underline-hover" i18n:msg=""><strong>MediaDrop</strong> <em>video platform</em></a>
		</div>
	</div>

	${Markup(settings['appearance_custom_footer_html'])}

	
    <script type="text/javascript">
        window.mediadrop = window.mediadrop || {};
        mediadrop.ie6update = mediadrop.ie6update || {};
        mediadrop.ie6update.scripts = "${h.url_for('/scripts/third-party/ie6update')}";
        mediadrop.ie6update.images = "${h.url_for('/images/third-party/ie6update/')}";
    </script>
	<!--[if IE 6]>
		<script type="text/javascript">
			// Load jQuery if not already loaded
			if (typeof jQuery == 'undefined') {
				document.write('<script type="text/javascript" src="'+mediadrop.ie6update.scripts+'/jquery-1.7.2.min.js"></'+'script>');
				var __noconflict = true;
			}
			var IE6UPDATE_OPTIONS = {
			    icons_path: mediadrop.ie6update.images,
			    message: 'Your version of Internet Explorer is not supported by this site. Click here to update... '
		    };
			document.write('<script type="text/javascript" src="'+mediadrop.ie6update.scripts+'/ie6update.js"></'+'script>');
		</script>
	<![endif]-->
</body>

</html>
